package tech.yunland.shop.domain.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.moyuer.bsf.domain.model.AbstractEntity;
import com.moyuer.bsf.domain.model.Organ;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by v on 17-7-4.
 */
@Entity
@Table(name = "organ_dormitories")
public class OrganDormitories extends AbstractEntity {

    @JSONField(serialize = false)
    @ManyToOne
    private Dormitories dormitories;

    @JSONField(serialize = false)
    @ManyToOne
    private Organ organ;

    public Dormitories getDormitories() {
        return dormitories;
    }

    public void setDormitories(Dormitories dormitories) {
        this.dormitories = dormitories;
    }

    public Organ getOrgan() {
        return organ;
    }

    public void setOrgan(Organ organ) {
        this.organ = organ;
    }
}
